package com.hotel.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hotel.entity.RoomInfo;

public interface RoomInfoMapper {
    int deleteByPrimaryKey(Integer roominfoId);

    int insert(RoomInfo record);

    int insertSelective(RoomInfo record);

    RoomInfo selectByPrimaryKey(Integer roominfoId);

    int updateByPrimaryKeySelective(RoomInfo record);

    int updateByPrimaryKey(RoomInfo record);
    
    /* 获取全部房间信息*/
    List<RoomInfo> findRoomInfoList(@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    /*获取全部房间状态*/
    List<String> getStatus();
    /*通过状态获取房间*/
    List<RoomInfo> getListByStatu(@Param("stateId")Integer stateId,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
}